﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autofac;
using You.Niao.ShaFa.IDAL;
using You.Niao.ShaFa.DAL;

namespace You.Niao.ShaFa
{
    public class SofaModule: Module
    {
        protected override void Load(ContainerBuilder builder)
        {
           builder.RegisterType<ShaFaImageDAL>().As<IShaFaImage>();
           builder.RegisterType<ShaFaInfoDAL>().As<IShaFaInfo>();
           builder.RegisterType<ShaFaTextDAL>().As<IShaFaArticle>();
           builder.RegisterType<AreaDAL>().As<IArea>();
           builder.RegisterType<CityDAL>().As<ICity>();
           builder.RegisterType<ProvinceDAL>().As<IProvince>();
           builder.RegisterType<PublishDAL>().As<IPublish>();
           builder.RegisterType<ReleaseDAL>().As<IRelease>();
           base.Load(builder);
        }
    }
}
